//重置样式
*{ margin:0; padding:0;text-decoration: none;}
body{font:12px/1.125 Arial,Helvetica,sans-serif;background:#fff;}
table{border-collapse:collapse;border-spacing:0;}
li{list-style:none;}
fieldset,img{border:0;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
q:before,q:after{content:'';}
a:focus,input,textarea{outline-style:none;}
input[type="text"],input[type="password"],textarea{outline-style:none;-webkit-appearance:none;}
textarea{resize:none}
address,caption,cite,code,dfn,em,i,th,var{font-style:normal;font-weight:normal;}
legend{color:#000;}
abbr,acronym{border:0;font-variant:normal;}
a{text-decoration:none;}
a:hover{text-decoration:none;}
.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}
.clearfix{display:inline-block;}
.clearfix{display:block;}
.clear{clear:both;height:0;font:0/0 Arial;visibility:hidden;}
.none{display:none}
.left{
  float: left;
}
.right{
  float: right;
}
a:hover{
  color: #ff5073;
  text-decoration: none;
}
//页面宽度设置
.wrapper{
  width: 1172px;
  margin: auto;
}
//header
header{
  .top{
    background:#ff5073;
    height: 30px;
    line-height:30px;
    color: white;
    cursor: pointer;
    i{
      position: relative;
      right: 3px;
      top: 2px;
      font-size:20px;
    }
    .top_lt{
      i{
        right: 0px;
      }
      margin-right: 10px;
      span{
        margin-right: 10px;
      }
    }
    .top_rt{
      span{
        margin-right: 15px;
      }
    }
    a:hover{
      color: white;
    }
  }
  a{
    color:white;
  }

  .middle{
    border-bottom: 1px solid #CCCCCC;
    .row{
      height: 90px;
      line-height: 90px;
      .logo{
        text-align: left;
      }
      .search{
        border: 1px solid #ff5073;
        width: 420px;
        height: 38px;
        line-height: 36px;
        border-radius: 20px;
        margin-top:25px;
        input{
          margin-bottom:16px;
          margin-left: 18px;
          padding: 0 10px 0 8px;
          border: 1px solid black;
          box-sizing: border-box;
        }
        button{
          height: 36px;
        }
      }
      #qr{
        height: 90px;
      }
    }

  }


}


//nav
nav{
  height: 45px;
  ul{
    height: 100%;
    border-bottom: 1px solid #CCCCCC;
    span{
      display: inline-block;
      height: 28px;
      line-height: 28px;
    }
    li{
      float:left;
      padding:15px 18px 0 18px;
      font-size: 16px;
      height: 100%;
      a{
        color: black;
      }
    }
    #category{//商品分类导航栏
      padding:15px 24px 0 28px;
      background: #f2f2f2;
      position: relative;
      width: 160px;
      a{
        display: block;
        color: black;
        line-height: 20px;
      }
      i{
        font-size: 14px;
        margin-right: 6px;
      }

      //动态创建导航
      #creat_category{
        width: 100%;
        position: absolute;
        top:45px;
        left:0;
        height: 480px;
        background: rgba(3, 3, 3, .5);
        z-index: 10;
        li{
          cursor: pointer;
          width: 100%;
          height: 50px;
          a{
            line-height: 20px;
            display: block;
          }
        }
        .sec_menu{
          >li{

            padding-left: 36px;
            line-height: 40px;

          }
          >li:hover{
            background: white;
            a{
              color: #ff5073;
            }
          }
          a{
            font-size: 14px;
            color:white;
          }
          .third_menu{
            width: 172px;
            height: 480px;
            position: absolute;
            left: 143px;
            top: 0;
            border-right: 5px solid rgba(0,0,0,0.1);
            background: white;
            li{
              width: 172px;
              padding-left: 36px;
              a{
                color:black;
                font-size: 14px;
              }
            }
            li:hover{
              a{
                color: #ff5073;
              }
            }
          }
        }
      }
    }
  }
}


//banner
#banner{
  div{
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 480px;
    p{
      width: 1920px;
      position: absolute;
      top: 0;
      left: 50%;
      margin-left: -960px;
      img{
        height: 480px;
        width: 100%;
      }
    }
  }
}

//main
//main top
.m_top{
  margin: 30px 0 45px 0;
  padding-left: 30px;
  h3{
    display: inline-block;
    margin-right: 20px;
  }
  span{
    font-size: 14px;
    color: #666666;
  }
}

//轮播
#carousel{
  position: relative;
  a{
    display: block;
    width: 293px;
    height: 360px;
    padding: 0 25px;
    img{
      width: 100%;
      height: 242px;
      width: 234px;
    }

    .product-info{
      font-size: 14px;
      margin-top: 15px;
      color: #2d2d2d;
      text-align: center;
      overflow: hidden;
    ;
      height: 40px;
    }

  }
  .price{
    width: 293px;
    text-align: center;
    position: absolute;
    height: 50px;
    bottom: 0;
    span{
      color: #ff5073;
    }
    font-size: 18px;
    text-align: center;
    del{
      text-decoration: line-through;
      color: #999999;
      margin-left: 5px;
      font-size: 14px;
    }
  }
  .screen {
    width:  1172px;
    height: 360px;
    overflow: hidden;
    position: relative;
    >ul {
      position: absolute;
      left: 0;
      top: 0px;
      width: 2637px;
      height: 360px;
      li {
        width: 293px;
        height: 360px;
        overflow: hidden;
        float: left;
      }
    }
  }

  img{
    width: 27px;
    height: 44px;
  }
  .pre{
    width: 27px;
    height: 44px;
    position: absolute;
    left: 0;
    top: 99px;
    cursor: pointer;
  }
  .next{
    width: 27px;
    height: 44px;
    position: absolute;
    right: 0;
    top: 99px;
    cursor: pointer;
  }




}

//商品列表
#goods{
  overflow: hidden;
  ol{
    overflow: hidden;
    margin-bottom: 250px;
  }
  li{
    box-sizing: border-box;
    float: left;
    margin: 1px 59px 61px 1px;
    width: 350px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    h4{
      display: block;
      margin-bottom: 10px;
      font-size:16px;
      color: #5C5C5C;
    }
    h3{
      color: #5C5C5C;
      display: block;
      font-size:18px;
      height: 44px;
      margin-bottom: 18px;
      margin-top: 8px;
    }
    a{
      display: block;
      padding: 40px 40px 0 40px;
    }
    a:hover{
      text-decoration: none;
    }
    img{
      width: 270px;
      height: 270px;
      float: none;
      display: block;
    }

    .goods_bt{
      height: 60px;
      position: relative;
      padding-left: 20px;
      background-color: #fff5f9;
      .regular-price{
        font-size: 24px;
        color: #ff7e00!important;
        line-height: 61px;
        font-family: Arial, Helvetica, sans-serif;
      }
      .market-price{
        display: inline-block;
        position: relative;
        top: 5px;
        left: 10px;
        del{
          display: inline-block;
          font-size: 16px;
          color: #beb7ba!important;
          height: 21px;
          line-height: 21px;
          text-decoration: line-through;
        }
        span{
          display: inline-block;
          color: #fd81c1!important;
          font-size: 12px;
          height: 21px;
          line-height: 21px;
        }
      }
      .btn_cart{
        font: 20px/61px Tahoma, Helvetica, Arial, "Microsoft Yahei", STXihei;
        display: inline-block;
        color: white;
        width: 124px;
        float:right;
        position: absolute;
        bottom: 0;
        right: 0;
        background-color: rgb(253, 73, 172);
        height: 100%;
        border: 1px solid rgb(253, 73, 172);
      }

    }
  }
  .third_padding{
    margin: 1px 0px 0px 1px !important;
  }
}
#goods li:hover{
  box-sizing: border-box;
  box-shadow: 1px 1px 3px 3px #CCCCCC;
}

//侧边栏
aside{
  color:white;
  height: 100%;
  width: 40px;
  z-index: 999;
  right: 0;
  position: fixed;
  top: 0;
  display: block;
  background: rgba(3, 3, 3, .5);
  .cart_aside li i{
    display: inline-block;
    font-size: 22px!important;
    height: 22px;
    position:relative;
  }
  .cart_aside li a{
    display:block ;
    width: 40px;
    height: 38px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    line-height: 38px;
    color: white;
  }
  a:hover{
    background: #ed145b;
    color: white;
  }
  .cart_aside li{
    width: 100%;
    text-align: center!important;
    overflow: hidden;
    margin-bottom: 8px;
    >div{//文字盒子
      z-index: 800;
      height: 38px;
      line-height: 38px;
      width: 92px;
      position: absolute;
      background-color: #666;
      color: #d8d8d8;
      text-align: center;
      display: inline-block;
      display: none;
    }
  }
  .cart_aside:nth-of-type(1){
    position: absolute;
    top: 25%;
    #shop_cart{
      padding-bottom: 20px;
      position: relative;
      cursor: pointer;
      span{
        width: 100%;
        display: block;
        height: 48px;
        font-size: 14px;
        display:inline-block;
      }
      b{
        margin-top: 10px;
        left: 10px;
        position: relative;
        font-weight: normal;
        display: block;
        font-size: 14px;
        height: 20px;
        line-height: 20px;
        width: 20px;
        border-radius: 50%;
        color: white;
        background: #ed145b;
      }
    }
    #shop_cart:hover{
      background: #ed145b;
      z-index: 700;
    }
  }
  .cart_aside:nth-of-type(2){
    position: absolute;
    bottom: 5%;
  }
  .triangle{//小三角
    display: inline-block;
    border: 7px solid transparent;
    border-left: 7px solid #666;
    position: relative;
    line-height: 38px;
    top: 3px;
    left: 29px;
  }
  //侧边栏文字盒子
  .geren{
    top: 144px;
    right: 70px;
  }
  .shoucang{
    top: 190px;
    right: 70px;
  }
  .dingdan{
    top: 236px;
    right: 70px;
  }
  .kefu{
    top: 0px;
    right: 70px;
  }
  .dingbu{
    top: 46px;
    right: 70px;
  }

  //模态框
  #my_shop_cart{
    z-index: 990!important;
    position: fixed;
    margin: auto!important;
    left:unset;
    right: -282px;
    top:0;
    height: 100%;
    border-left: 5px rgba(0, 0, 0, .1) solid;
    background: white;
    color: black;
    //width: 253px;
    padding:0 17px 0 10px;
    .my_shop_title{
      overflow: hidden;
      height: 39px;
      border-bottom: 1px solid #CCCCCC;
      line-height: 40px;
      font-size: 16px;
      span{
        float: left;
      }
      i{
        display: inline-block;
        float: right;
        height: 10px;
        color: #CCCCCC;
      }
    }

    .other_shop_title{
      padding-top: 10px;
      font-size: 14px;
      overflow: hidden;
    }


    #cart-group{//购物车商品组
      li{
        padding: 15px 0 15px 0;
        border-bottom: 1px solid #CCCCCC;
        overflow: hidden;
        .cart-img-box{//1.商品图片的盒子
          width: 88px;
          height: 95px;
          float: left;
          a{
            display: inline-block;
            img{
              width: 88px;
              height: 95px;
            }
          }

        }

        .mbar-cart-item{//2.商品信息盒子
          float: right;
          width: 153px;

          .cart-item-name{//商品名
            height: 40px;
            width: 153px;
            margin-bottom: 5px;
            overflow: hidden;
            a{
              color: #333333;
              font-size: 14px;
            }
          }

          .cart-item-sum{//商品数量
            height: 25px;
            a{
              width: 18px;
              display: inline-block;
              height: 18px;
              background-position: -140px -29px;
              position: static;
              color: #888;
              i{
                font-size: 18px;
              }
            }
            span{
              color: #666;
              font-size: 14px;
              padding: 0 5px;
            }
          }
          .cart-item-price{//商品价格
            float: left;
            color: #ff5073;
            width: 125px;
            height: 25px;
            line-height: 25px;
            overflow: hidden;
            font-size: 14px;
          }
          .cart-item-del{
            float: right;
            i{
              width: 20px;
              height: 22px;
              display: inline-block;
              font-size: 22px;
              color:#CCCCCC;
            }
          }

        }
      }
    }


    .mbar-cart-sum{//仓库商品数量
      height: 40px;
      padding: 5px 0;
      line-height: 30px;
      overflow: hidden;
      .cart-sum-left{
        font-size: 14px;
        float: left;
        width: 60%;
        display: inline-block;
        span{
          color: #ff1f7d;
          padding: 0 5px;
        }
      }
      .cart-sum-right{
        float: right;
        width: 40%;
        font-size: 16px;
        color: #ff1f7d;
        text-align: right;
      }
    }

    .mbar-cart-foot{
      background-color: #fff;

      left: 10px;
      height: 47px;
      padding: 5px 0 10px;
      bottom: auto;
      width: 250px;
      border-top: 1px #ddd dashed;
      a{
        display: block;
        background-color: #ff5073;
        border-radius: 5px;
        font-size: 16px;
        color: #fff;
        text-align: center;
        padding: 10px;
        line-height: 22px;
      }
    }
    .cart-none{
      padding: 20px 10px;
      text-align: center;
      width: 260px;
      height: 19px;
      padding: 20px 10px;
      color: #333333;
      font-size: 13px;
      display: none;

    }
  }













}

















//footer
footer{
  #f_main{
    background: #f3f1f2;;
    height: 186px;
    .row .main_text {
      padding: 40px;
      height: 106px;
      text-align: center;
    }
    p{
      margin-top:10px;
    }
  }
  #footer{
    padding: 40px 0;
    border-bottom: 1px solid #CCCCCC;
    box-sizing: border-box;
    .foot_lt{
      text-align: center;
      p{
        font-size: 14px;
        font-weight: bold;
        margin: 20px 0 10px 0;
      }
      .third_logo img:nth-of-type(2){
        padding: 0 16px;
      }
    }
    .footer_text{
      .li_title{
        font-size: 18px;
        margin-bottom: 10px;
        color: rgb(51, 51, 51);
        font-weight: bolder;
      }
      ul{
        border-left: 1px solid #CCCCCC;
        box-sizing: border-box;
      }
      li{
        font-size: 14px;
        padding: 7px 0;
        margin-left: 35px;
      }
    }
  }
  #bt_img{
    position: fixed;
    bottom: 25px;
    left: 36px;
    z-index: 999;
    img:nth-of-type(2){
      width: 181px;
      position: absolute;
      top: -130px;
      left: 130px;
      display: none;
    }
    span{
      position: absolute;
      top: 15px;
      left: 285px;
      display: inline-block;
      height: 25px;
      width: 25px;
      z-index: 999;
      border-radius: 50%;
      display: none;
    }
  }
  //service
  #service{
    border-bottom: 1px solid #CCCCCC;
    box-sizing: border-box;
    text-align: center;
    padding: 15px 0;
    p{
      font-size: 14px;
      color: rgb(51, 51, 51);
      font-weight: bold;
      margin-bottom: 10px;
    }
    span{
      color: rgb(51, 51, 51);
      font-size: 14px;
    }
    span:nth-of-type(2){
      padding:0 30px;
    }
  }

  //copyright
  #copyright{
    padding: 5px 0;
    .cr_lt{
      margin-left: 150px;
      span:nth-of-type(1){
        line-height: 30px;
        font-size: 12px;
        color: #aaaaaa;
      }
    }
    .cr_rt{
      margin-right: 130px;
      a img{
        width: 30px;
      }
      span{
        line-height: 30px;
        color: #aaaaaa;
      }
      span+a{
        color: #333333;
      }
    }

  }
}